package net.sk.china.city.service.impl;

import java.util.List;

import net.sk.china.city.service.IArRefundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import net.sk.china.city.mapper.ArRefundMapper;
import net.sk.china.city.domain.ArRefund;

/**
 * 退款单Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-06
 */
@Service
public class ArRefundServiceImpl implements IArRefundService
{
    @Autowired
    private ArRefundMapper arRefundMapper;

    /**
     * 查询退款单
     * 
     * @param pkId 退款单主键
     * @return 退款单
     */
    @Override
    public ArRefund selectArRefundByPkId(Long pkId)
    {
        return arRefundMapper.selectArRefundByPkId(pkId);
    }

    /**
     * 查询退款单列表
     * 
     * @param arRefund 退款单
     * @return 退款单
     */
    @Override
    public List<ArRefund> selectArRefundList(ArRefund arRefund)
    {
        return arRefundMapper.selectArRefundList(arRefund);
    }

    /**
     * 新增退款单
     * 
     * @param arRefund 退款单
     * @return 结果
     */
    @Override
    public int insertArRefund(ArRefund arRefund)
    {
        return arRefundMapper.insertArRefund(arRefund);
    }

    /**
     * 修改退款单
     * 
     * @param arRefund 退款单
     * @return 结果
     */
    @Override
    public int updateArRefund(ArRefund arRefund)
    {
        return arRefundMapper.updateArRefund(arRefund);
    }

    /**
     * 批量删除退款单
     * 
     * @param pkIds 需要删除的退款单主键
     * @return 结果
     */
    @Override
    public int deleteArRefundByPkIds(Long[] pkIds)
    {
        return arRefundMapper.deleteArRefundByPkIds(pkIds);
    }

    /**
     * 删除退款单信息
     * 
     * @param pkId 退款单主键
     * @return 结果
     */
    @Override
    public int deleteArRefundByPkId(Long pkId)
    {
        return arRefundMapper.deleteArRefundByPkId(pkId);
    }
}
